<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title></title>
    <link rel="stylesheet" href="../../../component/pear/css/pear.css" />
</head>
<body>
<div id="descriptions"></div>
<script src="../../../component/layui/layui.js"></script>
<script src="../../../component/pear/pear.js"></script>
<script>
    layui.use(['descriptions'], function() {
        let desc = layui.descriptions;
        let url = layui.url();
        let id = url.search.id;


        desc.render({
            elem: '#descriptions',
            fieldNum: 2,
            url: '/crm-course-material/detail/' + id,
            cols: [
                { field: 'id', title: 'id', hide: true },
                { field: 'courseId', title: 'course_id' },
                { field: 'icon', title: 'icon' },
                { field: 'seq', title: 'seq' },
                { field: 'materialType', title: 'material_type' },
                { field: 'materialUrl', title: 'material_url' },
                { field: 'materialDuration', title: 'material_duration' },
                { field: 'teacher', title: 'teacher' },
                { field: 'remark', title: 'remark' },
                { field: 'disabled', title: 'disabled' },
                { field: 'deleted', title: 'deleted' },
                { field: 'createBy', title: 'create_by' },
                { field: 'createTime', title: 'create_time', templet: function (d) {
                    return layui.util.toDateString(d.createTime,  "yyyy-MM-dd HH:mm:ss");
                }},
                { field: 'updateBy', title: 'update_by' },
                { field: 'updateTime', title: 'update_time', templet: function (d) {
                    return layui.util.toDateString(d.updateTime,  "yyyy-MM-dd HH:mm:ss");
                }},
                { title: '描述', longtext: true, templet: function(d) {
                    return '';
                }},
                { field: 'createByName', title: '创建者', newline: true },
                { field: 'createTime', title: '创建时间', templet: function (d) {
                    return layui.util.toDateString(d.createTime, "yyyy-MM-dd HH:mm:ss");
                }},
                { field: 'updateByName', title: '更新者' },
                { field: 'updateTime', title: '更新时间', templet: function (d) {
                    return layui.util.toDateString(d.updateTime, "yyyy-MM-dd HH:mm:ss");
                }},
            ]
        });
    })
</script>
</body>
</html>
